package xx.services.management.rest;

import java.sql.SQLException;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Context;

import xx.entity.util.Sign;
import xx.services.Passport;
import xx.services.util.Constants;

@Path(Constants.RESTFUL_ROOT_PATH + "/management/sign")
public class SignRest extends Passport
{
    public SignRest(@Context
    HttpServletRequest request)
    {
        super(request);
        // TODO Auto-generated constructor stub
    }

    @GET
    public String get()
    {
        try
        {
            return ok(Sign.getList());
        }
        catch (SQLException e)
        {
            return error(e);
        }
    }
}
